package com.yanqu.road.server.cmd.cross3;

import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.command.Command;
import com.yanqu.road.server.manger.cross3.ChannelActivitySwitchMgr;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.GameProtocol;
import io.netty.channel.ChannelHandlerContext;

@Cmd(code = GameProtocol.S_SYNC_REFRESH_CHANNEL_ACTIVITY_SWITCH_FROM_CROSS3, desc = "刷新区服跨域活动开关")
public class SyncRefreshChannelActivitySwitchCmdFromCross3 implements Command {

    @Override
    public void execute(ChannelHandlerContext ctx, YanQuMessage packet) throws Exception {
        ChannelActivitySwitchMgr.refreshSwitch();
    }
}
